package org.example.domain;

import java.util.Date;

public class Student_Exam {
    private Long exam_id;
    private Long student_id;
    private String exam_group;
    private String status;
    private Date start_time;
    private Date end_time;
    private String answer1;
    private String answer2;
    private String answer3;
    private String answer4;
    private String answer5;
    private String review4;
    private String review5;
    private int score;
    private String page_path;
    private String yuliu1;
    private String yuliu2;
    private String yuliu3;
    private String yuliu4;
    private Date create_time;
    private Date update_time;

    public Long getExam_id() {
        return exam_id;
    }

    public void setExam_id(Long exam_id) {
        this.exam_id = exam_id;
    }

    public Long getStudent_id() {
        return student_id;
    }

    public void setStudent_id(Long student_id) {
        this.student_id = student_id;
    }

    public String getExam_group() {
        return exam_group;
    }

    public void setExam_group(String exam_group) {
        this.exam_group = exam_group;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public String getAnswer1() {
        return answer1;
    }

    public void setAnswer1(String answer1) {
        this.answer1 = answer1;
    }

    public String getAnswer2() {
        return answer2;
    }

    public void setAnswer2(String answer2) {
        this.answer2 = answer2;
    }

    public String getAnswer3() {
        return answer3;
    }

    public void setAnswer3(String answer3) {
        this.answer3 = answer3;
    }

    public String getAnswer4() {
        return answer4;
    }

    public void setAnswer4(String answer4) {
        this.answer4 = answer4;
    }

    public String getAnswer5() {
        return answer5;
    }

    public void setAnswer5(String answer5) {
        this.answer5 = answer5;
    }

    public String getReview4() {
        return review4;
    }

    public void setReview4(String review4) {
        this.review4 = review4;
    }

    public String getReview5() {
        return review5;
    }

    public void setReview5(String review5) {
        this.review5 = review5;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getPage_path() {
        return page_path;
    }

    public void setPage_path(String page_path) {
        this.page_path = page_path;
    }

    public String getYuliu1() {
        return yuliu1;
    }

    public void setYuliu1(String yuliu1) {
        this.yuliu1 = yuliu1;
    }

    public String getYuliu2() {
        return yuliu2;
    }

    public void setYuliu2(String yuliu2) {
        this.yuliu2 = yuliu2;
    }

    public String getYuliu3() {
        return yuliu3;
    }

    public void setYuliu3(String yuliu3) {
        this.yuliu3 = yuliu3;
    }

    public String getYuliu4() {
        return yuliu4;
    }

    public void setYuliu4(String yuliu4) {
        this.yuliu4 = yuliu4;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
    public boolean equals(Object obj){
        if (obj instanceof Student_Exam){
            Student_Exam student_exam = (Student_Exam) obj;
            StringBuilder stringBuilder1 = new StringBuilder();
            stringBuilder1.append(this.getExam_id());
            stringBuilder1.append("-");
            stringBuilder1.append(this.getStudent_id());
            stringBuilder1.append("-");
            stringBuilder1.append(this.getExam_group());

            StringBuilder stringBuilder2 = new StringBuilder();
            stringBuilder2.append(student_exam.getExam_id());
            stringBuilder2.append("-");
            stringBuilder2.append(student_exam.getStudent_id());
            stringBuilder2.append("-");
            stringBuilder2.append(student_exam.getExam_group());
            return stringBuilder1.toString().equals(stringBuilder2.toString());
        }

        return false;
    }
    public int hashCode(){
        return Integer.parseInt(this.getStudent_id().toString());
    }
}
